package com.ktjiaoyu.news.service.impl;

import com.ktjiaoyu.news.dao.GoodsDao;
import com.ktjiaoyu.news.dao.impl.GoodsDaolmpl;
import com.ktjiaoyu.news.entity.Goods;
import com.ktjiaoyu.news.service.GoodsSvrvice;

import java.util.Collections;
import java.util.List;

public class GoodsServicelmpl implements GoodsSvrvice {
    GoodsDao goodsDao = new GoodsDaolmpl();
    @Override
    public List<Goods> getuserInfoPage(String mane, Integer pageNo, Integer pageSize) {
        return goodsDao.getuserInfoPage(mane, pageNo, pageSize);
    }

    @Override
    public int count(String title) {
        return 0;
    }

    @Override
    public List<Goods> getAllGoodsList() {
        return goodsDao.getAllGoodsList();
    }

    @Override
    public int insert(Goods goods) {
        return goodsDao.insert(goods);
    }

    @Override
    public Goods findById(int id) {
        return goodsDao.findById(id);
    }

    @Override
    public int update(Goods goods) {
        return goodsDao.update(goods);
    }

    @Override
    public int delById(int id) {
        return goodsDao.delById(id);
    }
}
